/**
 * @file make_friends.h
 *
 */
#ifndef MAKE_FRIENDS_H
#define MAKE_FRIENDS_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_MAKE_FRIENDS != 0

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/
enum
{
    MAKE_FIRIENDS_NO = 0,
    MAKE_FIRIENDS_RUNNING,
    MAKE_FIRIENDS_FAILED,
    MAKE_FIRIENDS_SUCCEED,
};
typedef uint8_t make_friends_status_t;


typedef struct {
    lv_watch_obj_ext_t lv_watch_obj;
    /*New data for this type */
    uint32_t retry_start_tick;
    uint32_t retry_timeout;
    uint32_t app_query_start_tick;
    uint32_t app_query_period;
    make_friends_status_t status;
} lv_makefriends_obj_ext_t;

/**********************
 * GLOBAL PROTOTYPES
 **********************/
lv_obj_t * make_friends_create(lv_obj_t * activity_obj);
void make_friends_create_event_cb(lv_obj_t * btn,lv_event_t event);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_MAKE_FRIENDS*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*MAKE_FRIENDS_H*/
